﻿namespace EyeOpen.Dependency.Unity
{
    using System;
    using System.Collections.Generic;

    public partial class UnityServiceContainer : IDependencyContainer
    {
        public T Resolve<T>()
        {
            return this.Container.Resolve<T>();
        }

        public T Resolve<T>(string name)
        {
            return this.Container.Resolve<T>(name);
        }

        public object Resolve(Type t)
        {
            return this.Container.Resolve(t);
        }

        public object Resolve(Type t, string name)
        {
            return this.Container.Resolve(t, name);
        }

        public IEnumerable<T> ResolveAll<T>()
        {
            return this.Container.ResolveAll<T>();
        }

        public IEnumerable<object> ResolveAll(System.Type t)
        {
            return this.Container.ResolveAll(t);
        }

        public void Teardown(object o)
        {
            this.Container.Teardown(o);
        }
    }
}
